-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add show search_path for pg #5328
feat: add show search_path for pg #5328
Conversation
Signed-off-by: yihong0618 <[email protected]>
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5328 +/- ##
==========================================
- Coverage 84.15% 83.88% -0.27%
==========================================
Files 1177 1181 +4
Lines 220202 220931 +729
==========================================
+ Hits 185309 185332 +23
- Misses 34893 35599 +706 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation seems too complex for our needs. We should consider a simpler approach like the one used in MySQL implementation, which uses regex matching for queries and returns placeholder responses. This would be more straightforward and easier to maintain. https://github.com/GreptimeTeam/greptimedb/blob/main/src/servers/src/mysql/federated.rs
will take a look but I followed the command like greptimedb/src/sql/src/statements/show.rs Line 284 in 78d0fa7
and follow the code, the search_path is not like the ederated.rs way maybe? And for pg there's another command we can add too, update check the mysql code, seems |
Yes, If we need to keep the |
thanks will try to implement set search_path next |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I hereby agree to the terms of the GreptimeDB CLA.
part of #5271
for now
pg_database
is better to hold waiting for the upstream apache/datafusion#13489this patch support pg
show search_path
for now seems no search path for greptime so use database insteadRefer to a related PR or issue link (optional)
What's changed and what's your intention?
PR Checklist
Please convert it to a draft if some of the following conditions are not met.